package ${controllerPackageName}.app;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import com.alibaba.fastjson.TypeReference;
import com.sdhs.paas.sdk.base.common.BasePage;
import com.sdhs.paas.sdk.base.dto.PageInfoDTO;
import com.sdhs.paas.sdk.base.page.Page;
import com.sdhs.paas.sdk.base.utils.EntityDtoConvertUtil;
import com.sdhs.paas.sdk.core.PaasBaseRequest;
import com.sdhs.paas.sdk.core.PaasBaseResponse;
import com.sdhs.paas.sdk.core.RefreshableRestController;

import ${controllerPackageName}.bean.${className}Bean;
import ${controllerPackageName}.dto.${className}DTO;
import ${controllerPackageName}.dto.req.${className}ReqDTO;
import ${controllerPackageName}.dto.res.${className}ResDTO;
import ${controllerPackageName}.service.${className}Service;

/**
 * @author ${className}
 * @version 1.0
 * @Title:  代码生成接口，用于接受前端传输过来的数据
 * @author ${author}
 * @date ${date}
 */
 
@RefreshableRestController
@RequestMapping(value = "/${className?uncap_first}")
public class ${className}Controller {

    @Autowired
    private ${className}Service ${className?uncap_first}Service;
    
    /**
     * 分页查询接口
     * */
    @PostMapping("/get${className}PageList")
	public PaasBaseResponse<${className}ResDTO> get${className}PageList(@RequestBody PaasBaseRequest<${className}ReqDTO> ${className?uncap_first}ReqDTO) {
		return null;
	}
	
	/**
	 * 保存接口
	 * */
	@PostMapping("/save${className}")
	public PaasBaseResponse<${className}ResDTO> save${className}(@RequestBody PaasBaseRequest<${className}ReqDTO> ${className?uncap_first}ReqDTO) {
		return null;
	}
	
	/**
	 * 修改接口
	 * */
	@PostMapping("/update${className}")
	public PaasBaseResponse<${className}ResDTO> update${className}(@RequestBody PaasBaseRequest<${className}ReqDTO> ${className?uncap_first}ReqDTO) {
		return null;
	}
	
	/**
	 * 获取详情接口
	 * */
	@PostMapping("/get${className}Detail")
	public PaasBaseResponse<${className}ResDTO> get${className}Detail(@RequestBody PaasBaseRequest<${className}ReqDTO> ${className?uncap_first}ReqDTO) {
		return null;
	}
	
	/**
	 * 删除接口
	 * */
	@PostMapping("/delete${className}")
	public PaasBaseResponse<${className}ResDTO> delete${className}(@RequestBody PaasBaseRequest<${className}ReqDTO> ${className?uncap_first}ReqDTO) {
		return null;
	}
}
